package com.springcloud.topic;

import org.springframework.cloud.stream.annotation.Input;
import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.MessageChannel;
import org.springframework.messaging.SubscribableChannel;

/**
 * @author 顾志杰
 * @date 2020/7/29-14:38
 */
public interface DelayedTopic {
    String INPUT = "delayed-consumer";

    String OUTPUT = "delayed-producer";

    /**
     * 消费通道
     */
    @Input(INPUT)
    SubscribableChannel input();


    /**
     * 生产通道
     */
    @Output(OUTPUT)
    MessageChannel output();
}
